import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author <a href='mailto:maruichao52@gmail.com'>MRC</a>
 * @since 2021/1/7
 */
@Slf4j
public class TestSocket {

    public static void main(String[] args) throws IOException {


        ServerSocket serverSocket = new ServerSocket(6666);
        log.info("server running...");

        while (true) {

            // 获取客户端Socket
            Socket socket = serverSocket.accept();

        }



    }

}

